algorithm to find prime factors of a number in python